package com.zcy.auth.mapper;

import com.zcy.auth.domain.Permission;
import com.zcy.basic.mapper.BaseMapper;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 权限 Mapper 接口
 * </p>
 *
 * @author lucker
 * @since 2023-12-02
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    void deleteAll();

    void addBatch(List<Permission> permissionList);

    List<Permission> getPermissionTree();

    List<Permission> getPermissionTreeByRoleId(Serializable id);

    List<Long> getPermissionIdsByRoleId(Serializable id);



}
